﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Logoned.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="Chowpoo.Util" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <% var title = ViewData["isDigest"].CheckStr("0") == "1" ? "精华帖展示" : "主题讨论"; %>
    <%=title%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% var title = ViewData["isDigest"].CheckStr("0") == "1" ? "精华帖展示" : "主题讨论";
       var isDigest = ViewData["isDigest"].CheckInt(0);
    %>
    <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
        <% Html.RenderPartial("TopUc"); %>
        <% Html.RenderPartial("NavUc", 5); %>
        <% Html.RenderPartial("InteractionNavUc", ViewData["type"].CheckInt(0)); %>
    </table>
    <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td height="200" align="center" valign="top" class="contentBackImg">
                <table width="950" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="28" align="left" background="<%=ResolveUrl("~/Content/images/5_01_1.gif")%>">
                            <table width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="22">
                                    </td>
                                    <td width="677">
                                        <div align="left">
                                            <span class="style10"><%=title%></span>
                                        </div>
                                    </td>
                                    <td width="146">
                                        &nbsp;
                                    </td>
                                    <td width="102">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" valign="top" background="<%=ResolveUrl("~/Content/images/5_02_1.gif")%>">
                            <table width="944" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="25" bgcolor="#CCCCCC">
                                        <table width="944" height="25" border="0" cellpadding="0" cellspacing="0">
                                            <% using (Ajax.BeginForm("ForumsListUc", new { isDigest }, new AjaxOptions { UpdateTargetId = "listDiv", HttpMethod = "Get" }))
                                               { %>
                                            <tr>
                                                <td width="67">
                                                    <div align="right" class="style1">
                                                        关键字：
                                                    </div>
                                                </td>
                                                <td width="141">
                                                    <input name="search" type="text" style="width: 130px;" />
                                                </td>
                                                <td width="45">
                                                    <input type="submit" value="搜索" />
                                                </td>
                                                <td width="311">
                                                    &nbsp;
                                                </td>
                                                <td width="295">
                                                    &nbsp;
                                                </td>
                                                <td width="68">
                                                </td>
                                                <td width="17">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <%} %>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" valign="top" bgcolor="#FFFFFF" id="listDiv">
                                        <% Html.RenderAction("ForumsListUc", new { isDigest }); %>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="13" bgcolor="#FFFFFF">
                                    </td>
                                </tr>
                            </table>
                            <table width="944" height="25" border="0" cellpadding="0" cellspacing="0">
                                <tr class="style1">
                                    <td height="50">
                                        <div align="center">
                                            <table border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="21">
                                                        <img src="<%=ResolveUrl("~/Content/images/1.jpg") %>" width="21" height="26">
                                                    </td>
                                                    <td width="100">
                                                        <div align="center">
                                                            有新帖的版块
                                                        </div>
                                                    </td>
                                                    <td width="30">
                                                        &nbsp;
                                                    </td>
                                                    <td width="21">
                                                        <img src="<%=ResolveUrl("~/Content/images/2.jpg") %>" width="21" height="26">
                                                    </td>
                                                    <td width="100">
                                                        <div align="center">
                                                            无新帖的版块
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="3" background="<%=ResolveUrl("~/Content/images/5_04_1.gif")%>">
                        </td>
                    </tr>
                </table>
                <table width="1000" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="10">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
